using System;

namespace B.S.NewMedical.Api.Read.DTOS.VisitRecord
{
    /// <summary>
    /// 就诊记录DTO
    /// </summary>
    public class VisitRecordDto
    {
        /// <summary>
        /// 就诊记录ID
        /// </summary>
        public int Id { get; set; }

        /// <summary>
        /// 患者ID
        /// </summary>
        public int? PatientId { get; set; }

        /// <summary>
        /// 就诊类型ID
        /// </summary>
        public int? VisitTypeId { get; set; }

        /// <summary>
        /// 就诊时间
        /// </summary>
        public DateTime? VisitTime { get; set; }

        /// <summary>
        /// 就诊时间格式化显示
        /// </summary>
        public string? VisitTimeText => VisitTime?.ToString("yyyy-MM-dd HH:mm");

        /// <summary>
        /// 就诊地点
        /// </summary>
        public string? VisitLocation { get; set; }

        /// <summary>
        /// 诊断结果
        /// </summary>
        public string? DiagnosisResult { get; set; }

        /// <summary>
        /// 治疗方案
        /// </summary>
        public string? TreatmentPlan { get; set; }

        /// <summary>
        /// 创建人
        /// </summary>
        public string? CreatePeople { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime? CreateTime { get; set; }

        /// <summary>
        /// 创建时间格式化显示
        /// </summary>
        public string? CreateTimeText => CreateTime?.ToString("yyyy-MM-dd HH:mm");

        /// <summary>
        /// 更新人
        /// </summary>
        public string? UpdatePeople { get; set; }

        /// <summary>
        /// 更新时间
        /// </summary>
        public DateTime? UpdateTime { get; set; }

        /// <summary>
        /// 更新时间格式化显示
        /// </summary>
        public string? UpdateTimeText => UpdateTime?.ToString("yyyy-MM-dd HH:mm");
    }
}